Crate error_code

source ·
Expand description

Error code library provides generic errno/winapi error wrapper

User can define own Category if you want to create new error wrapper.

§Usage

use error_code::ErrorCode;

use std::fs::File;

File::open("non_existing");
println!("{}", ErrorCode::last_system());

Modules§

  • Definitions used by this library
  • C types used inside crate
  • Error code utilities

Macros§

  • Defines error code Category as enum which implements conversion into generic ErrorCode

Structs§

  • Interface for error category
  • Describes error code of particular category.

Constants§

Statics§

Type Aliases§

  • Type alias for buffer to hold error code description.